#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mount.h>

static const struct cfiattrdata hdaudiobuscf_iattrdata = {
	"hdaudiobus", 1,
	{
		{ "nid", "-1", -1 },
	}
};

static const struct cfiattrdata * const hdaudio_attrs[] = { &hdaudiobuscf_iattrdata, NULL };
CFDRIVER_DECL(hdaudio, DV_DULL, hdaudio_attrs);


static struct cfdriver * const cfdriver_ioconf_hdaudio[] = {
	&hdaudio_cd,
	NULL
};

extern struct cfattach hdaudio_pci_ca;

/* locators */
static int loc[2] = {
	-1, -1,
};

static const struct cfparent pspec0 = {
	"pci", "pci", DVUNIT_ANY
};

#define NORM FSTATE_NOTFOUND
#define STAR FSTATE_STAR

static struct cfdata cfdata_ioconf_hdaudio[] = {
    /* driver           attachment    unit state loc   flags pspec */
/*  0: hdaudio* at pci? dev -1 function -1 */
    { "hdaudio",		"hdaudio_pci",	 0, STAR, loc+  0,      0, &pspec0 },
    { NULL,		NULL,		 0, 0,    NULL,      0, NULL }
};

static struct cfattach * const hdaudio_cfattachinit[] = {
	&hdaudio_pci_ca, NULL
};

static const struct cfattachinit cfattach_ioconf_hdaudio[] = {
	{ "hdaudio", hdaudio_cfattachinit },
	{ NULL, NULL }
};
